﻿using PPM.Blog.Repository.Models;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;

namespace PPM.Blog.Mvc.Controllers
{
    public class TestController : Controller
    {
        private BlogDbContext db = new BlogDbContext();

        // GET: Test
        public ActionResult Index()
        {

            var posts = db.Blog.Find(1).Posts;
            var roles = db.Role.Find(8).Children;
            return View();
        }
    }
}